package com.chb.controller;

import com.chb.annotation.LogAnnotation;
import com.chb.model.vo.QuitStaffVo;
import com.chb.model.vo.Result;
import com.chb.service.QuitStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：张家琪
 * @date ：Created in 2023/10/11 9:47
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("quitStaff")
public class QuitStaffController {
    @Autowired
    private QuitStaffService outStaffService;

    @RequestMapping("/list")
    @LogAnnotation(business_type = "离职信息")
    public Result list(Integer current, Integer pageSize, @RequestBody QuitStaffVo outstaffVo) {
        Result result = outStaffService.findAll(current, pageSize, outstaffVo);
        return result;
    }
}